home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15444 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  686 b 

  1. Path: FreeNet.Carleton.CA!aq436
  2. From: aq436@FreeNet.Carleton.CA (Jerry Boyd)
  3. Newsgroups: comp.lang.c
  4. Subject: File Display Program
  5. Date: 19 Apr 1996 00:47:41 GMT
  6. Organization: The National Capital FreeNet
  7. Sender: aq436@freenet2.carleton.ca (Jerry Boyd)
  8. Message-ID: <4l6nrd$fr3@freenet-news.carleton.ca>
  9. Reply-To: aq436@FreeNet.Carleton.CA (Jerry Boyd)
  10. NNTP-Posting-Host: freenet2.carleton.ca
  11.  
  12.  
  13. How would I write a program that would display the contents of 
  14. a file 20 lines at a time.  At the end of each 20 lines, I need
  15. it to wait for a character to be entered (in the form of "q" to 
  16. quit the display and any other character to continue with the 
  17. next 20 lines of the file)?
  18.  
  19.  
  20.  
  21. --
  22.  
  23.